package farm.pattern.chain;


import farm.entity.EnvironmentData;
import farm.entity.FarmMachine;

public abstract class SafetyHandler {
    protected SafetyHandler nextHandler;

    public void setNextHandler(SafetyHandler handler) {
        nextHandler = handler;
    }

    public abstract void handleRequest(EnvironmentData data, FarmMachine machine);
}